package com.jili.factory.pizza;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * ClassName: Pizza
 * Package com.jili.factory.pizza
 * Description:
 *
 * @Author: 廖继礼
 * @Create: 2024/7/29
 * @Version: v1.0
 */
public abstract class Pizza {

    String name;

    public Pizza(String name){
        this.name = name;
    }

    public abstract void prepare();


    public String getPizzaType() {
        try {
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
            System.out.println("input pizza type: ");
            return bufferedReader.readLine();

        } catch (IOException e) {
            e.printStackTrace();
            return "";
        }
    }
}
